]> dgit.raspbian.org Git - gnome-shell.git/commit
workspacesView: Center extra workspace
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 20 Feb 2021 12:33:29 +0000 (13:33 +0100)
committerMarge Bot <marge-bot@gnome.org>
Tue, 2 Mar 2021 21:56:30 +0000 (21:56 +0000)
commit40121bbe4b6534bf1efb12ea8a9cd56b968af7aa
tree60c8397698e3416a7210afb6411e70aff3a85ab9
parent2731d3572301d4639e623a14eb8fee6b0fcd45d4
workspacesView: Center extra workspace

At the moment views on non-primary monitors take up the entire work area,
so simply allocating the available size works. However we'll soon shrink
the views a bit to match the visuals on the primary monitor. As workspaces
keep the ratio, reducing their height will also reduce the width; override
the default allocate() to keep the extra workspace horizontally centered.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1735>
js/ui/workspacesView.js